package com.wanhe.base.model.disgn;



import java.util.List;

/**
 * 首页菜品分类下的页面数据模型
 * <p>
 * Created by Administrator on 2016/5/19.
 */
public class CatalogViewModel {


    /**
     * id : 1
     * name : 新品
     * special : true
     * pages : [{"image":{"id":"a0b1c931-d08b-4c64-b7b9-276973d2dbf3","ThumbnailFileName":"BodyPart_f3426ca2-5989-417c-b8c3-1076506c808f_Thumbnail.jpg","folderName":"DesignImg","fileName":"BodyPart_f3426ca2-5989-417c-b8c3-1076506c808f.jpg"},"items":[],"lines":[],"disabled":true}]
     */


    private int tid;
    private String name;
    private boolean special;

    /**
     * 背景图数据模型
     */
    private List<PageViewModel> pages;

    public int getId() {
        return tid;
    }

    public void setId(int id) {
        this.tid = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isSpecial() {
        return special;
    }

    public void setSpecial(boolean special) {
        this.special = special;
    }

    public List<PageViewModel> getPages() {
        if (pages != null && pages.size() > 0) {
            return this.pages;
        }
        return null;
    }

    public void setPages(List<PageViewModel> pages) {
        this.pages = pages;
    }

}
